import requests from "./requests";

// 菜单分页查询接口
export const selectMenuAllAPI = (params) => {
    return requests({
        method: 'get',
        url: '/menu/selectAll',
        params
    })
}
//


//菜单新增接口
export const MenuAddAPI = (data) => {
    return requests({
        method: 'post',
        url: '/menu/add',
        data
    })
}

//菜单删除接口
export const MenudeleteAPI = (data) => {
    return requests({
        method: 'delete',
        url: '/menu/delete',
        data
    })
}

// 菜单id查询接口
export const selectMenuIdAPI = (params) => {
    return requests({
        method: 'get',
        url: '/menu/selectbyid',
        params
    })
}

// 菜单编辑接口
export const editMenuAPI = (data) => {
    return requests({
        method: 'post',
        url: '/menu/edit',
        data
    })
}